package com.atguigu.eduorder.client;

import com.atguigu.service.entity.EduCourse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Classname CourseOrderClient
 * @Description TODO
 * @Date 2022/9/17 18:17
 * @Created by ZHL17
 */
@Component
@FeignClient(name = "service-edu",fallback =CourseOrderClientImpl.class)
public interface CourseOrderClient {
    @GetMapping("/eduservice/course/getCourse/{courseId}")
    EduCourse getCourse(@PathVariable("courseId") String courseId);
}
